import request from '@/utils/request'

// 封装登录请求
export const loginAPI = (data) => {
  return request({ url: '/sys/login', method: 'post', data })
}

// 封装用户信息请求
export const UserInfoAPI = () => {
  return request.get('/sys/profile')
}
// 修改密码
export const updatePwdAPI = (data) => {
  return request({ url: '/sys/user/updatePass', method: 'put', data })
}

